<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?=$title_in_template?> - 글쓰기페이지</title>
<?=$css_in_template?>
</head>

<body>

<?php
$this->import('login');
?>

<div class="navbar navbar-default navbar-fixed-top" role="navigation">
  <div class="container">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">12<span class="text-danger">R</span></a>
    </div>
    <div class="collapse navbar-collapse">
      <ul class="nav navbar-nav">
        <li><a href="/index.php">Home</a></li>
        <li class="active"><a href="/index.php?controller=write">Write</a></li>
      </ul>
      <ul class="nav navbar-nav navbar-right">
        <?php
        if (isset($custom_in_template['logged_msg']) === false) {
        ?>
        <li><a href="#" data-toggle="modal" data-target=".bs-example-modal-sm">LOGIN</a></li>
        <?php 
        } else {
            echo $custom_in_template['logged_msg'];
        }
        ?>
      </ul>
    </div>
  </div>
</div>

<div class="container">
<?=$contents_in_template?>
</div>
            
<div id="footer">
  <div class="container">
    <p class="text-muted">This is 12r.</p>
  </div>
</div>
<?=$js_in_template?>
</body>
</html>